sbin_PROGRAMS=aladin

aladin_LDADD=$(LUALIBS) -lm -lssl
sysconf_DATA=aladin.conf.lua

src=server.c \
	server.h \
	http.h \
	http.c \
	header.h \
	header.c \
	common.h \
	config.h \
	conf.h \
	conf.c \
	list.h \
	rfc1123.c \
	array.h \
	array.c \
	string.h \
	string.c \
	lua_api.h \
	lua_api.c \
	cache_dir.h \
	cache_dir.c \
	log.h \
	log.c \
	mempool.h \
	mempool.c \
	globals.h \
	hashtable.h \
	hashtable.c \
	cache_file.h \
	cache_file.c \
	md5.h \
	md5.c \
	thread.h \
	thread.c \
	sock.h \
	sock.c \
	queue.h \
	queue.c \
	cache_control.h \
	cache_control.c

DEFS+=-DDEFAULT_CONFIG_FILE=\"$(prefix)/etc/aladin.conf\" -D_GNU_SOURCE
aladin_SOURCES=$(src)
